SET(DAL_SRCS
BankService.cpp
MysqlDB.cpp
)
INCLUDE_DIRECTORIES(/usr/include/mysql)
INCLUDE_DIRECTORIES(../model)
INCLUDE_DIRECTORIES(../common)
LINK_DIRECTORIES(/usr/lib/x86_64-linux-gnu)
SET(CXX_FLAGS -DBIG_JOINS=1 -fno-strict-aliasing -c -g -DNDEBUG)
ADD_LIBRARY(bank_muduo_dal ${DAL_SRCS})
TARGET_LINK_LIBRARIES(bank_muduo_dal abc_bank_common mysqlclient pthread z m dl muduo_net)
INSTALL(TARGETS bank_muduo_dal DESTINATION lib)
